package com.data.model.catalog;

import lombok.Data;

import java.util.List;


@Data
public class IndexCatalogDTO extends BaseCatalogDTO {
    /**
     * 指标结构
     */
    private StructureDTO structureDTO;

    /**
     * 表
     */
    private TableReferenceDTO tableReferenceDTO;

    /**
     * 依赖指标
     */
    private List<IndexReferenceDTO> indexReferences;

    /**
     * 表依赖
     */
    private TableCatalogDTO tableCatalog;

    private List<IndexCatalogDTO> referencedIndexCatalogs;


    @Data
    public static class StructureDTO {
        /**
         * 表code
         */
        private String definition;
    }

    @Data
    public static class TableReferenceDTO {
        /**
         * 表code
         */
        private String code;
    }

    @Data
    public static class IndexReferenceDTO {
        /**
         * 指标code
         */
        private String code;
    }
}
